package net.xinqushi.design.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author xjie
 * @description Tomcat Filter
 */
public class MyFilter implements Filter {


    @Override
    public void init(javax.servlet.FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("============过滤============");
        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {

    }
}
